package com.cz.zslu.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableLogic;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 相册管理
 * </p>
 *
 * @author Bruce
 * @since 2019-06-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("photo_album")
public class PhotoAlbum extends SuperEntity<PhotoAlbum> {

    private static final long serialVersionUID = 1L;

    /**
     * 是否删除 0：有效，1 删除
     */
    @JSONField(serialize = false)
    @TableLogic
    @JsonIgnore
    private Integer state = 0;


    /**
     * 相册标题
     */
    @ApiModelProperty("相册标题")
    @TableField("name")
    private String name;


    /**
     * 相册描述
     */
    @ApiModelProperty("相册描述")
    @TableField("content")
    private String content;


    /**
     * 店铺id
     */
    @ApiModelProperty("店铺id")
    @TableField("store_id")
    private Long storeId;


    /**
     * 相册容量
     */
    @ApiModelProperty("相册容量")
    @TableField("capacity")
    private Long capacity=0L;


    /**
     * 封面id
     */
    @ApiModelProperty("封面id")
    @TableField("cover_id")
    private Long coverId=0L;


    /**
     * 封面路径
     */
    @ApiModelProperty("封面路径")
    @TableField("cover_url")
    private String coverUrl="";


}
